{% extends 'base.html' %}
{% block content %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'css/log.css' %}" />
<div style="width:1280px;margin:auto;">
    <h1 class="mt-3" style="text-align:center">详细日志信息</h1>
    <table class="table table-bordered">
        <tr class="table-secondary">
            <th width="5%" style="text-align:center">ID</th>
            <th width="25%">目标设备IP</th>
            <th width="11%">操作</th>
            <th>状态</th>
            <th>时间</th>
            <th>信息</th>
        </tr>
        {% for log in logs %}
            <tr style="background-color: rgba(240,240,255,0.2) !important;">
                <td style="text-align:center">{{ log.id }}</td>
                <td>{{ log.target }}</td>
                <td>{{ log.action }}</td>
                <td>{{ log.status }}</td>
                <td>{{ log.time }}</td>
                <td>{{ log.message }}</td>
            </tr>
        {% endfor %}
    </table>
</div>
{% endblock %}